<script>
  try {
    var o = { ; };    // 语法错误
  } catch(e){
    console.log(e.message);
  }
</script>